package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntityCheck;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 检查类型对象 common_check_type
 * 
 * @author ruoyi
 * @date 2023-11-16
 */
public class CommonCheckType extends TreeEntityCheck
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 类型编码 */
    @Excel(name = "类型编码")
    private String checkTypeNo;

    /** 检查类型名称 */
    @Excel(name = "检查类型名称")
    private String checkTypeName;

    /** 分类状态（0正常 1停用） */
    @Excel(name = "分类状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 子部门 */
    private List<CommonCheckType> children = new ArrayList<>();


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCheckTypeNo(String checkTypeNo) 
    {
        this.checkTypeNo = checkTypeNo;
    }

    public String getCheckTypeNo() 
    {
        return checkTypeNo;
    }
    public void setCheckTypeName(String checkTypeName) 
    {
        this.checkTypeName = checkTypeName;
    }

    public String getCheckTypeName() 
    {
        return checkTypeName;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("checkTypeNo", getCheckTypeNo())
            .append("checkTypeName", getCheckTypeName())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
